import { request } from 'umi';

export async function create(body) {
  return request('/admin/tag/create', {
    method: 'POST',
    data: body
    // ...(options || {}),
  });
}

export async function del(options) {
  return request('/admin/tag/delete', {
    method: 'DELETE',
    params: { ...options }
    // ...(options || {}),
  });
}

export async function list(options) {
  return request('/admin/tag/list', {
    method: 'GET',
    params: { ...options }
    // ...(options || {}),
  });
}